home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sprite 1984 - 1993
/
Sprite 1984 - 1993.iso
/
src
/
lib
/
c
/
stdio
/
RCS
/
setlinebuf.c,v
< prev
next >
Wrap
Text File
|
1991-12-02
|
2KB
|
87 lines
head 1.1;
branch ;
access ;
symbols sprited:1.1.1;
locks ; strict;
comment @ * @;
1.1
date 88.06.10.16.23.59; author ouster; state Exp;
branches 1.1.1.1;
next ;
1.1.1.1
date 91.12.02.20.02.33; author kupfer; state Exp;
branches ;
next ;
desc
@@
1.1
log
@Initial revision
@
text
@/*
* setlinebuf.c --
*
* Source code for the "setlinebuf" library procedure.
*
* Copyright 1988 Regents of the University of California
* Permission to use, copy, modify, and distribute this
* software and its documentation for any purpose and without
* fee is hereby granted, provided that the above copyright
* notice appear in all copies. The University of California
* makes no representations about the suitability of this
* software for any purpose. It is provided "as is" without
* express or implied warranty.
*/
#ifndef lint
static char rcsid[] = "$Header: atoi.c,v 1.1 88/04/28 17:20:23 ouster Exp $ SPRITE (Berkeley)";
#endif not lint
#include "stdio.h"
/*
*----------------------------------------------------------------------
*
* setlinebuf --
*
* Turn on line buffering for a stream.
*
* Results:
* None.
*
* Side effects:
* From now on, the buffer for stream will be flushed whenever a
* newline character is written to it, and also whenever input is
* read from stdin.
*
*----------------------------------------------------------------------
*/
void
setlinebuf(stream)
FILE *stream; /* Stream to be re-buffered. */
{
stream->flags |= STDIO_LINEBUF;
}
@
1.1.1.1
log
@Initial branch for Sprite server.
@
text
@d17 1
a17 1
static char rcsid[] = "$Header: /sprite/src/lib/c/stdio/RCS/setlinebuf.c,v 1.1 88/06/10 16:23:59 ouster Exp $ SPRITE (Berkeley)";
@